//订单管理API
import {get, post, put, del} from "../utils/request";

//分页查询订单信息
export function fetchList(params) {
    return get('/order/listpage', params)
}

//批量关闭订单
export function closeOrder(params) {
    return post('/order/close', params)
}

//批量删除订单
export function deleteOrder(params) {
    return post('/order/del', params)
}

//获取订单详情
export function getOrderDetail(id) {
    return get('/order/getitem/' + id)
}

//修改收件人信息
export function updateReceiverInfo(data) {
    return post('/order/update/receiver',data)
}

//修改订单费用信息
export function updateMoneyInfo(data){
    return post('/order/update/money',data)
}

//修改订单备注信息
export function updateOrderNote(data) {
    return post('/order/update/note', data)
}

//订单发货
export function deliveryOrder(data) {
    return post('/order/delivery', data)
}

//支付回调
export function paySuccess(orderId) {
    return post('/order/pay/success?orderId=' + orderId +'&payType=1')
}
